POV-Ray : Newsgroups : povray.general : Int() Problems : Re: Int() Problems Server Time
7 Aug 2024 09:19:42 EDT (-0400)
  Re: Int() Problems  
From: JRG
Date: 16 Oct 2001 17:37:07
Message: <3bcca883@news.povray.org>
No luck with beta 6 too...
Are you sure you are allowed to use int() in functions?
The docs do not seem to forbid that...

--
Jonathan.
"Tom Melly" <tom### [at] tomandlucouk> ha scritto nel messaggio
news:3bcca6d0@news.povray.org...
> I'm having a problem with the following scene under 3.5b5. The use of int
is
> generating an error. I'm sort of assuming I'm doing something stupid,
since
> if it was a bug I would be surprised if no one had come across it before
> (hence the post here rather than beta). I'm getting the error: "Parse
Error:
> Expected 'function identifier', } found instead"
>
> I'm downloading beta 6 to see if that fixes it, but if anyone can spot
what
> I'm doing wrong enquiring minds want to know. Here's the simplified
> function:
>
> #include "functions.inc"
> #declare fn_X = function(x,y,z) {int(x) }
> isosurface {
>   function { fn_X(x, y, z) }
>   contained_by { box { -1, 1 } }
>   accuracy 0.001
>   max_gradient 4
>   pigment{Yellow}
> }
>
>
>


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.